<template>
  <el-container style="border: 1px solid #eee">
    <el-aside
      width="200px"
      style="background-color: rgb(238, 241, 246)"
    >
      <el-menu :default-openeds="['1', '3']">
        <el-submenu index="1">
          <template slot="title"><i class="el-icon-location"></i>璃月</template>
          <el-menu-item-group>
            <el-menu-item index="1-1">地貌</el-menu-item>
            <el-menu-item index="1-2">建设</el-menu-item>
          </el-menu-item-group>
          <el-submenu index="1-4">
            <template slot="title">政权</template>
            <el-menu-item index="1-4-1">群玉阁</el-menu-item>
          </el-submenu>
        </el-submenu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <el-dropdown>
          <i
            class="el-icon-setting"
            style="margin-right: 15px"
          ></i>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>查看</el-dropdown-item>
            <el-dropdown-item>新增</el-dropdown-item>
            <el-dropdown-item>删除</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <span>kiyana</span>
      </el-header>

      <el-main>
        <el-table :data="tableData">
          <el-table-column
            prop="date"
            label="日期"
            width="140"
          >
          </el-table-column>
          <el-table-column
            prop="name"
            label="姓名"
            width="120"
          >
          </el-table-column>
          <el-table-column
            prop="address"
            label="地址"
          > </el-table-column>
        </el-table>
      </el-main>
    </el-container>
  </el-container>
</template>
<style>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>

<script>
export default {
  data () {
    const item = {
      date: '2019-09-15',
      name: '王小美',
      address: '璃月港玉京台月海亭3楼'
    }
    return {
      tableData: Array(10).fill(item)
    }
  }
}
</script>
